package com.shuai.shuaisecondhand_springboot.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

@Data
public class User {
    private String id;
    private String username;
    @JsonIgnore           //此注解可忽略后端传去给前端的值
    private String password;
    private String sex;
    private String phone;
    private String address;
    private String avatar;
    private String time;
    // 逻辑删除
    private Integer isDeleted;

    //以下非数据库字段,也可新建一个DTO类，copy到此实体类
    private String token;
    @JsonIgnore
    private String newpassword;
}
